package com.marktotop.chapter4.service;

import com.marktotop.chapter4.entity.TbUser;
import com.marktotop.chapter4.mapper.TbUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author WXLD
 * @data 2021/4/26 - 10:36
 */
@Service("tbUserService")
public class TbUserServiceImpl implements TbUserService {

    @Autowired
    private TbUserMapper tbUserMapper;

    @Override
    public TbUser getOne(Integer id) {
        return tbUserMapper.findOneById(id);
    }
}
